package tests;/*
 *
 *@author:    Xavier
 *@data:      2023 - 12 - 8
 *@time:      09:13
 *
 */

import common.Utils;
import org.openqa.selenium.By;

public class QuitLogin extends Utils {

    public static String quitUrl = "http://192.168.1.12:9580/index.html";
    public QuitLogin(){
        super(quitUrl);
    }

    public void quitLoginTest() {
        // 验证是否 处于登录状态
        driver.findElement(By.cssSelector("#index_nav_avatar"));
        // 退出登录
        driver.findElement(By.cssSelector("#index_nav_avatar")).click();
        driver.findElement(By.cssSelector("#index_user_logout")).click();

        // 释放
        //driver.quit();
    }
}
